{block name="circle_layout"}
	{include file="common:common_layout"}
{/block}
{extend name="common/layout" /}
{block name="style"}{/block}
{block name="content"}
<div class="group warp-all">
	{include file="circle:group:group_top" /}

    <div class="base-layout mt20">
        <div class="mainbox">
            <div class="base-tab-menu">
                <ul class="base-tabs-nav">
                    <li><a href="{:url('circle/Group/index', ['c_id'=>$c_id])}">话题</a></li>
                    <li class="selected"><a href="{:url('circle/Group/group_member', ['c_id'=>$c_id])}">圈友</a></li>
                 <!--    <li><a href="{:url('circle/group/group_goods')}?c_id=<?php echo $c_id;?>">商品</a></li> -->
                </ul>
            </div>
            <div class="group-member">
                <?php if(in_array($identity, array(1,2,3,6))){?>
                <ul class="group-member-list">
                    <h3>我的名片</h3>
                    <li>
                        <dl class="member-info">
                            <dt class="member-name"><a href="javascript:void(0)"><?php echo $cm_info['member_name'];?></a></dt>
                            <dd class="member-avatar-m"><img src="<?php echo $cm_info['member_avatar'];?>" /></dd>
                            <dd class="time"><em><?php echo @date('Y-m-d', $cm_info['cm_jointime']);?></em>加入</dd>
                            <dd><?php echo memberIdentity($cm_info['is_identity']);?>&nbsp;<?php echo memberLevelHtml($cm_info);?></dd>
                            <dd class="member-intro-edit"><i></i><a href="javascript:void(0);" nctype="cmEdit">编辑</a></dd>
                        </dl>
                        <p class="intro" title="<?php if($cm_info['cm_intro'] != ''){echo $cm_info['cm_intro'];}else{echo '暂无自我介绍';}?>"><?php if($cm_info['cm_intro'] != ''){echo $cm_info['cm_intro'];}else{echo '暂无自我介绍';}?></p>
                    </li>
                </ul>
                <div class="clear"></div>
                <?php }?>
                <ul class="group-member-list">
                    <h3>其他圈友</h3>
                    <?php if(!empty($cm_list)){?>
                    <?php foreach (($cm_list) as $val){?>
                    <li>
                        <dl class="member-info">
                            <dt class="member-name"><a href="javascript:void(0)"><?php echo $val['member_name'];?></a></dt>
                            <dd class="member-avatar-m"><img src="<?php echo $val['member_avatar'];?>" /></dd>
                            <dd class="time"><em><?php echo @date('Y-m-d', $val['cm_jointime']);?></em>加入</dd>
                            <dd><?php echo memberIdentity($val['is_identity']);?>&nbsp;<?php echo memberLevelHtml($val);?></dd>
                        </dl>
                        <p class="intro" title="<?php if($val['cm_intro'] != ''){echo $val['cm_intro'];}else{echo '暂无自我介绍';}?>"><?php if($val['cm_intro'] != ''){echo $val['cm_intro'];}else{echo '暂无自我介绍';}?></p>
                    </li>
                    <?php }?>
                    <?php }?>
                </ul>
                <div class="clear"></div>
                <div class="pagination"><?php echo $show_page;?></div>
            </div>
        </div>
        {include file="circle:group:group_sidebar" /}

    </div>
</div>
<script type="text/javascript" src="__SITE_RESOURCE__/js/jquery.validation.min.js"></script>
<script>
    $(function(){
        $('a[nctype="cmEdit"]').click(function(){
            if(_ISLOGIN){
                _uri = "<?php echo url('circle/Group/group_memberedit');?>?inajax=1&c_id=<?php echo $c_id;?>";
                CUR_DIALOG = ajax_form('memberedit', '修改个人信息', _uri, 520);
            }
        });
    });
</script>
{/block}